package com.haima.ziliao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haima.ziliao.mapper.PDayinOrderMapper;
import com.haima.ziliao.domain.PDayinOrder;
import com.haima.ziliao.service.IPDayinOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 打印订单Service业务层处理
 * 
 * @author hima
 * @date 2024-10-21
 */
@Service
public class PDayinOrderServiceImpl extends ServiceImpl<PDayinOrderMapper, PDayinOrder> implements IPDayinOrderService
{
    @Autowired
    private PDayinOrderMapper pDayinOrderMapper;

    /**
     * 查询打印订单
     * 
     * @param id 打印订单主键
     * @return 打印订单
     */
    @Override
    public PDayinOrder selectPDayinOrderById(Long id)
    {
        return pDayinOrderMapper.selectPDayinOrderById(id);
    }

    /**
     * 查询打印订单列表
     * 
     * @param pDayinOrder 打印订单
     * @return 打印订单
     */
    @Override
    public List<PDayinOrder> selectPDayinOrderList(PDayinOrder pDayinOrder)
    {
        return pDayinOrderMapper.selectPDayinOrderList(pDayinOrder);
    }

    /**
     * 新增打印订单
     * 
     * @param pDayinOrder 打印订单
     * @return 结果
     */
    @Override
    public int insertPDayinOrder(PDayinOrder pDayinOrder)
    {
        return pDayinOrderMapper.insertPDayinOrder(pDayinOrder);
    }

    /**
     * 修改打印订单
     * 
     * @param pDayinOrder 打印订单
     * @return 结果
     */
    @Override
    public int updatePDayinOrder(PDayinOrder pDayinOrder)
    {
        return pDayinOrderMapper.updatePDayinOrder(pDayinOrder);
    }

    /**
     * 批量删除打印订单
     * 
     * @param ids 需要删除的打印订单主键
     * @return 结果
     */
    @Override
    public int deletePDayinOrderByIds(Long[] ids)
    {
        return pDayinOrderMapper.deletePDayinOrderByIds(ids);
    }

    /**
     * 删除打印订单信息
     * 
     * @param id 打印订单主键
     * @return 结果
     */
    @Override
    public int deletePDayinOrderById(Long id)
    {
        return pDayinOrderMapper.deletePDayinOrderById(id);
    }
}
